package nz.ac.massey.cs.plot;

import java.awt.BorderLayout;

import javax.swing.JFrame;


public class Main {


    public static void main(String[] args) {
    	final GroupsScatterPlot gsp = new GroupsScatterPlot();
    	
    	// add group1
    	for(double x=0;x<Math.PI*2;x+=0.1)
    		gsp.add("sin", x, Math.sin(x));
    	
    	for(double x=0;x<Math.PI*2;x+=0.1)
    		gsp.add("cos", x, Math.cos(x));
    	
    	new JFrame(){{
    		getContentPane().setLayout(new BorderLayout());
    		getContentPane().add(gsp);
    		setBounds(300, 300, 500, 500);
    		setDefaultCloseOperation(EXIT_ON_CLOSE);
    		setVisible(true);
    	}};
    }

}
